
// 自动生成模板LsAfterSaleOrder
package shop
import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"time"
)

// 售后管理表 结构体  LsAfterSaleOrder
type LsAfterSaleOrder struct {
    global.GVA_MODEL
  ShopId  *int32 `json:"shopId" form:"shopId" gorm:"comment:商品Id;column:shop_id;" binding:"required"`  //商品Id
  OrderId  *int32 `json:"orderId" form:"orderId" gorm:"comment:原订单Id;column:order_id;" binding:"required"`  //原订单Id
  UserId  *int32 `json:"userId" form:"userId" gorm:"comment:用户Id;column:user_id;" binding:"required"`  //用户Id
  Reason  *string `json:"reason" form:"reason" gorm:"comment:售后原因;column:reason;size:255;" binding:"required"`  //售后原因
  OrderUrl  *string `json:"orderUrl" form:"orderUrl" gorm:"comment:售后凭证;column:order_url;size:255;"`  //售后凭证
  AfterSaleStatus  *string `json:"afterSaleStatus" form:"afterSaleStatus" gorm:"comment:售后状态;column:after_sale_status;size:255;" binding:"required"`  //售后状态
  ApplyTime  *time.Time `json:"applyTime" form:"applyTime" gorm:"comment:申请时间;column:apply_time;"`  //申请时间
  AuditTime  *time.Time `json:"auditTime" form:"auditTime" gorm:"comment:审核时间;column:audit_time;"`  //审核时间
    CreatedBy  uint   `gorm:"column:created_by;comment:创建者"`
    UpdatedBy  uint   `gorm:"column:updated_by;comment:更新者"`
    DeletedBy  uint   `gorm:"column:deleted_by;comment:删除者"`
}


// TableName 售后管理表 LsAfterSaleOrder自定义表名 ls_after_sale_order
func (LsAfterSaleOrder) TableName() string {
    return "ls_after_sale_order"
}





